package com.qf.service.impl;

import com.qf.dao.MedicalhistoryDao;
import com.qf.pojo.Medicalhistory;
import com.qf.service.MedicalhistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class MedicalhistoryServiceImpl implements MedicalhistoryService {
    @Autowired
    private MedicalhistoryDao medicalhistoryDao;
    @Override
    public List<Medicalhistory> select(Medicalhistory medicalhistory) {
        return medicalhistoryDao.select(medicalhistory);
    }

    @Override
    public int insert(Medicalhistory medicalhistory) {
        return medicalhistoryDao.insert(medicalhistory);
    }

    @Override
    public int update(Medicalhistory medicalhistory) {
        return medicalhistoryDao.update(medicalhistory);
    }

    @Override
    public int delete(List<Integer> list) {
        return medicalhistoryDao.delete(list);
    }
}
